package com.etc.mapper;

import com.etc.entity.Question;
import com.etc.entity.Questionnaire;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionnaireMapper {
    Questionnaire querybyID(int id);
    List<Questionnaire> querybyAll();
    List<Question> queryquestion();
    void  insertQ(@Param("question_cid") int id, @Param("question_answer") String answer);
    List<Questionnaire> querybyname(@Param("name") String name);
    void update(@Param("cid") int cid, @Param("answer") String answer, @Param("id") int id);
    void insertN(@Param("question_cid") int id, @Param("question_answer") String answer,@Param("user_cid")int user_cid);
}
